import request from '@/utils/request'

// 查询历史存留标准规范入库列表
export function listHistoryimport(query) {
  return request({
    url: '/result/historyimport/list',
    method: 'get',
    params: query
  })
}

// 查询历史存留标准规范入库详细
export function getHistoryimport(sid) {
  return request({
    url: '/result/historyimport/' + sid,
    method: 'get'
  })
}

// 新增历史存留标准规范入库
export function addHistoryimport(data) {
  return request({
    url: '/result/historyimport',
    method: 'post',
    data: data
  })
}

// 修改历史存留标准规范入库
export function updateHistoryimport(data) {
  return request({
    url: '/result/historyimport',
    method: 'put',
    data: data
  })
}

// 删除历史存留标准规范入库
export function delHistoryimport(sid) {
  return request({
    url: '/result/historyimport/' + sid,
    method: 'delete'
  })
}

// 导出历史存留标准规范入库
export function exportHistoryimport(query) {
  return request({
    url: '/result/historyimport/export',
    method: 'get',
    params: query
  })
}



//=============================== priavte start ======================================
// 查询【历史存留标准规范入库】列表
export function listNotice(query) {
  return request({
    url: '/standard/notice/list',
    method: 'get',
    params: query
  })
}

// 新增【历史存留标准规范入库】数据
export function addStorageNotice(data) {
  return request({
    url: '/standard/notice/addStorageNotice',
    method: 'post',
    data: data
  })
}


// 查询标准规范附件
export function getUploadFiles(sid) {
  return request({
    url: '/result/historyimport/uploadfiles/' + sid,
    method: 'get'
  })
}

// 附件上传新增
export function addUploadFile(data) {
  return request({
    url: '/result/historyimport/attachment/add',
    method: 'post',
    data: data
  })
}

// 附件上传修改
export function updateUploadFile(data) {
  return request({
    url: '/result/historyimport/attachment/update',
    method: 'post',
    data: data
  })
}

// 附件上传删除
export function delUploadFile(data) {
  return request({
    url: '/result/historyimport/attachment/delete',
    method: 'post',
    data: data
  })
}

//====================================== private end ===============================================